<script>
    $('#hospital_select').change(function() {
        $.ajax({
            url:"/index/data",
            type: "get",
            data: { do: "change",
                    hospital_select:$("#hospital_select").val(),
                     },
            dataType: "json",
        });
        location.reload('/index/data');
    });
</script>
<if condition="$single eq true">
<else />
<div class="bjui-pageHeader" style="background:#FFF;">
    <div class="container">
        <div class="row">
            <div class="col-md-12">
                <h4>
                    选择医院
                    <select name="hospital_select" data-toggle="selectpicker" data-width="200"  id="hospital_select" >
                        <volist name="hospital_list" id="vo">
                            <option value="{$vo.id}" <if condition="$hospital.id eq $vo['id']">selected</if>>
                            {$vo.name}
                        </option>
                    </volist>
                    </select>
                </h4>
            </div>
        </div>
    </div>
</div>
</if>
<div class="bjui-pageContent">
<div style="margin-top:5px; padding:0 5px; overflow:hidden;">
<div class="row">
<in name="depart_id" value="1,2,3,4">
    <div class="col-md-4">
        <div class="panel panel-default">
            <div class="panel-heading">
                <h3 class="panel-title">整体预约统计数据</h3>
            </div>
            <div class="panel-body">
                <table class="table  table-bordered table-striped table-hover" width="20%">
                    <tbody>
                        <tr>
                            <td>今日</td>
                            <td>预到 {$t_all}</td>
                            <td>实到 {$t_all_come}</td>
                            <td>未到 {$t_all_not}</td>
                            <td>待跟 {$t_all_z}</td>
                        </tr>
                        <tr>
                            <td>昨日</td>
                            <td>预到 {$y_all}</td>
                            <td>实到 {$y_all_come}</td>
                            <td>未到 {$y_all_not}</td>
                            <td>待跟 {$y_all_z}</td>
                        </tr>
                        <tr>
                            <td>同期</td>
                            <td>预到 {$l_m_t_all}</td>
                            <td>实到 {$l_m_t_all_come}</td>
                            <td>未到 {$l_m_t_all_not}</td>
                            <td>待跟 {$l_m_t_all_z}</td>
                        </tr>
                        <tr>
                            <td>本月</td>
                            <td>预到 {$this_m_all}</td>
                            <td>实到 {$this_m_all_come}</td>
                            <td>未到 {$this_m_all_not}</td>
                            <td>待跟 {$this_m_all_z}</td>
                        </tr>
                        <tr>
                            <td>上月</td>
                            <td>预到 {$l_m_all}</td>
                            <td>实到 {$l_m_all_come}</td>
                            <td>未到 {$l_m_all_not}</td>
                            <td>待跟 {$l_m_all_z}</td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</in>
<in name="depart_id" value="1,2,3,4">
    <div class="col-md-4">
        <div class="panel panel-default">
            <div class="panel-heading">
                <h3 class="panel-title">网络预约统计数据</h3>
            </div>
            <div class="panel-body">
                <table class="table  table-bordered table-striped table-hover" width="20%">
                    <tbody>
                        <tr>
                            <td>今日</td>
                            <td>预到 {$t_web}</td>
                            <td>实到 {$t_web_come}</td>
                            <td>未到 {$t_web_not}</td>
                            <td>待跟 {$t_web_z}</td>
                        </tr>
                        <tr>
                            <td>昨日</td>
                            <td>预到 {$y_web}</td>
                            <td>实到 {$y_web_come}</td>
                            <td>未到 {$y_web_not}</td>
                            <td>待跟 {$y_web_z}</td>
                        </tr>
                        <tr>
                            <td>同期</td>
                            <td>预到 {$l_m_t_web}</td>
                            <td>实到 {$l_m_t_web_come}</td>
                            <td>未到 {$l_m_t_web_not}</td>
                            <td>待跟 {$l_m_t_web_z}</td>
                        </tr>
                        <tr>
                            <td>本月</td>
                            <td>预到 {$this_m_web}</td>
                            <td>实到 {$this_m_web_come}</td>
                            <td>未到 {$this_m_web_not}</td>
                            <td>待跟 {$this_m_web_z}</td>
                        </tr>
                        <tr>
                            <td>上月</td>
                            <td>预到 {$l_m_web}</td>
                            <td>实到 {$l_m_web_come}</td>
                            <td>未到 {$l_m_web_not}</td>
                            <td>待跟 {$l_m_web_z}</td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</in>
<in name="depart_id" value="1,2,3,4,6">
    <div class="col-md-4">
        <div class="panel panel-default">
            <div class="panel-heading">
                <h3 class="panel-title">电话预约统计数据</h3>
            </div>
            <div class="panel-body">
                <table class="table  table-bordered table-striped table-hover" width="20%">
                    <tbody>
                        <tr>
                            <td>今日</td>
                            <td>预到 {$t_tel}</td>
                            <td>实到 {$t_tel_come}</td>
                            <td>未到 {$t_tel_not}</td>
                            <td>待跟 {$t_tel_z}</td>
                        </tr>
                        <tr>
                            <td>昨日</td>
                            <td>预到 {$y_tel}</td>
                            <td>实到 {$y_tel_come}</td>
                            <td>未到 {$y_tel_not}</td>
                            <td>待跟 {$y_tel_z}</td>
                        </tr>
                        <tr>
                            <td>同期</td>
                            <td>预到 {$l_m_t_tel}</td>
                            <td>实到 {$l_m_t_tel_come}</td>
                            <td>未到 {$l_m_t_tel_not}</td>
                            <td>待跟 {$l_m_t_tel_z}</td>
                        </tr>
                        <tr>
                            <td>本月</td>
                            <td>预到 {$this_m_tel}</td>
                            <td>实到 {$this_m_tel_come}</td>
                            <td>未到 {$this_m_tel_not}</td>
                            <td>待跟 {$this_m_tel_z}</td>
                        </tr>
                        <tr>
                            <td>上月</td>
                            <td>预到 {$l_m_tel}</td>
                            <td>实到 {$l_m_tel_come}</td>
                            <td>未到 {$l_m_tel_not}</td>
                            <td>待跟 {$l_m_tel_z}</td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</in>

<in name="depart_id" value="1,2,4,5,7">
<volist name="dp" id="vo">
    <div class="col-md-4">
        <div class="panel panel-default">
            <div class="panel-heading">
                <h3 class="panel-title">{$vo.dp}预约统计数据</h3>
            </div>
            <div class="panel-body">
                <table class="table  table-bordered table-striped table-hover" width="25%">
                    <tbody>
                        <tr>
                            <td>今日</td>
                            <td>预到 {$vo.t_dp}</td>
                            <td>实到 {$vo.t_dp_come}</td>
                            <td>未到 {$vo.t_dp_not}</td>
                            <td>待跟 {$vo.t_dp_z}</td>
                        </tr>
                        <tr>
                            <td>昨日</td>
                            <td>预到 {$vo.y_dp}</td>
                            <td>实到 {$vo.y_dp_come}</td>
                            <td>未到 {$vo.y_dp_not}</td>
                            <td>待跟 {$vo.y_dp_z}</td>
                        </tr>
                        <tr>
                            <td>同期</td>
                            <td>预到 {$vo.l_m_t_dp}</td>
                            <td>实到 {$vo.l_m_t_dp_come}</td>
                            <td>未到 {$vo.l_m_t_dp_not}</td>
                            <td>待跟 {$vo.l_m_t_dp_z}</td>
                        </tr>
                        <tr>
                            <td>本月</td>
                            <td>预到 {$vo.this_m_dp}</td>
                            <td>实到 {$vo.this_m_dp_come}</td>
                            <td>未到 {$vo.this_m_dp_not}</td>
                            <td>待跟 {$vo.this_m_dp_z}</td>
                        </tr>
                        <tr>
                            <td>上月</td>
                            <td>预到 {$vo.l_m_dp}</td>
                            <td>实到 {$vo.l_m_dp_come}</td>
                            <td>未到 {$vo.l_m_dp_not}</td>
                            <td>待跟 {$vo.l_m_dp_z}</td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</volist>
</in>
<in name="depart_id" value="1,2,3,4,7">
    <div class="col-md-4">
        <div class="panel panel-default">
            <div class="panel-heading">
                <h3 class="panel-title">自挂预约统计数据</h3>
            </div>
            <div class="panel-body">
                <table class="table  table-bordered table-striped table-hover" width="25%">
                    <tbody>
                        <tr>
                            <td>今日</td>
                            <td>预到 {$t_zg}</td>
                            <td>实到 {$t_zg_come}</td>
                            <td>未到 {$t_zg_not}</td>
                            <td>待跟 {$t_zg_z}</td>
                        </tr>
                        <tr>
                            <td>昨日</td>
                            <td>预到 {$y_zg}</td>
                            <td>实到 {$y_zg_come}</td>
                            <td>未到 {$y_zg_not}</td>
                            <td>待跟 {$y_zg_z}</td>
                        </tr>
                        <tr>
                            <td>同期</td>
                            <td>预到 {$l_m_t_zg}</td>
                            <td>实到 {$l_m_t_zg_come}</td>
                            <td>未到 {$l_m_t_zg_not}</td>
                            <td>待跟 {$l_m_t_zg_z}</td>
                        </tr>
                        <tr>
                            <td>本月</td>
                            <td>预到 {$this_m_zg}</td>
                            <td>实到 {$this_m_zg_come}</td>
                            <td>未到 {$this_m_zg_not}</td>
                            <td>待跟 {$this_m_zg_z}</td>
                        </tr>
                        <tr>
                            <td>上月</td>
                            <td>预到 {$l_m_zg}</td>
                            <td>实到 {$l_m_zg_come}</td>
                            <td>未到 {$l_m_zg_not}</td>
                            <td>待跟 {$l_m_zg_z}</td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</in>
</div>
</div>
</div>
